home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 501-525 / disk_511 / onekey / handint.asm < prev    next >
Assembly Source File  |  1992-05-06  |  750b  |  31 lines

  1.  
  2.    xdef   _HandlerInterface
  3.    xref   _myhandler
  4.  
  5.  
  6. *************************************************************************
  7. *   HandlerInterface()
  8. *
  9. *   This code is needed to convert the calling sequence performed by
  10. *   the input.task for the input stream management into something
  11. *   that a C program can understand.
  12. *
  13. *   This routine expects a pointer to an InputEvent in A0, a pointer
  14. *   to a data area in A1.  These values are transferred to the stack
  15. *   in the order that a C program would need to find them.  Since the
  16. *   actual handler is written in C, this works out fine. 
  17. *
  18. *   Author: Rob Peck, 12/1/85
  19. *
  20.  
  21.      section CODE
  22.  
  23. _HandlerInterface:
  24.    movem.l   A0/A1,-(A7)
  25.    jsr       _myhandler
  26.    addq.l    #8,A7
  27.    rts
  28.  
  29.      END
  30.  
  31.